<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/inc/css.inc"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>医学大讲堂</title>
		<link rel="stylesheet" href="${css}/amazeui.css" />
		<link rel="stylesheet" href="${css}/bbscont.css" />
		<script src="https://cdn.bootcss.com/jquery/2.2.2/jquery.js"></script>
	</head>
	<script type="text/javascript">
		$(function(){
			var cookieVal = localStorage.patientid;  //获取 local storage 
			if( typeof (cookieVal)  ==  "undefined" || cookieVal ==  undefined){
				window.location.href = "<%=basePath%>/web/enrollment/joyin/letter.jsp?a=selectAllForumPost";
			}else{
				$("#logindiv").show();
			}
		});
	</script>
	<body id="logindiv" style="display:none">
		<div class="warp">
			<ul class="pingluncont">
				<li>										
					<div class="item-title">${forumPost.forumName}</div>
					<div class="item-info">${forumPost.forumContent}</div>
				</li>
				<li>
					<div class="item-top"><h3>留言</h3></div>
					<ul class="am-comments-list pinglun">
						<c:forEach items="${leaveWordList}" var="l">
							<a href="#link-to-user-home">
						    	<img src="${img}/bbsbanner.png" alt="" class="am-comment-avatar" width="48" height="48"/>
						  	</a>
							<div class="am-comment-main">
							    <header class="am-comment-hd">
								      <div class="am-comment-meta">
								        <a href="#link-to-user" class="am-comment-author">${l.nickname}</a>
								      </div>
							    </header>
							    <div class="am-comment-bd border-b ptcont">
							    	 ${l.leaveContent}
							    </div>
						  </div>
						</c:forEach>
					</ul>
				</li>
			</ul>
			<div class="am-g msgbox">
				 <div class="am-u-sm-9"><input type="text" class="am-form-field am-input-sm am-radius" placeholder="请输入您的问题" /></div>
  				<div class="am-u-sm-3"><button type="button" class="am-btn am-btn-xs am-btn-primary">发送</button></div>
			</div>
		</div>
	</body>
</html>
